<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue基本用法</title>
    <style>
        [v-cloak] {
            display: none;
        }
    </style>
</head>

<body>
    <div class="app">
        <p v-cloak>{{name}}</p>
        <p v-cloak>{{1+5}}</p>
        <p v-text='age'></p>
        <p v-text='gender'></p>
        <!-- <p>{{if(gender='男')}}</p>  不可以写语句 -->
    </div>
    <script src="./js/vue.js"></script>
    <script>
        var vm = new Vue({
            el: '.app',
            data: {
                name: '张三',
                age: 18,
                gender: '男'
            }
        })
    </script>
</body>

</html>